home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
xep
/
OS2
/
Makefile.os2
< prev
Wrap
Makefile
|
1997-08-03
|
2KB
|
67 lines
#
# $Id: Makefile.aimk,v 1.4 1997/06/17 21:19:58 pvmsrc Exp $
#
# Generic Makefile body to be concatenated to config header.
#
# Imports:
# PVM_ARCH = the official pvm-name of your processor
# ARCHCFLAGS = special cc flags
# ARCHLIB = special libs needed for daemon
#
SHELL = /bin/sh
PVMDIR = ../..
PVMIDIR = $(PVMDIR)/include
PVMLDIR = $(PVMDIR)/lib/$(PVM_ARCH)
PVMLIB = pvm3
PVMLIBDEP = $(PVMLDIR)/$(PVMLIB).a
SDIR = $(PVMDIR)/xep
BDIR = $(PVMDIR)/bin
XDIR = $(BDIR)/$(PVM_ARCH)
#CFLOPTS = -O
CFLOPTS = -g
CFLAGS = $(CFLOPTS) -I$(PVMIDIR) -L$(PVMLDIR) $(ARCHCFLAGS)
LIBS = -l$(PVMLIB) $(ARCHLIB) -lbsd
XLIBS = -lXaw -lXmu -lXext -lXt -lX11
XCFLAGS = -Zmtd -I$(X11ROOT)/XFree86/include -L$(X11ROOT)/XFree86/lib
HEADERS = $(SDIR)/hostc.h $(SDIR)/imp.h $(SDIR)/myalloc.h \
$(PVMIDIR)/pvm3.h $(PVMDIR)/src/bfunc.h
default: mtile$(EXESFX) xep$(EXESFX)
all: mmain$(EXESFX) mtile$(EXESFX) xep$(EXESFX)
$(XDIR):
- mkdir $(BDIR)
- mkdir $(XDIR)
mmain$(EXESFX): $(SDIR)/mmain.c $(XDIR) $(PVMLIBDEP)
$(CC) $(CFLAGS) -o mmain$(EXESFX) $(SDIR)/mmain.c $(LIBS)
mv mmain$(EXESFX) $(XDIR)
mtile$(EXESFX): $(SDIR)/mtile.c $(XDIR) $(PVMLIBDEP)
$(CC) $(CFLAGS) -o mtile$(EXESFX) $(SDIR)/mtile.c $(LIBS) -lm
mv mtile$(EXESFX) $(XDIR)
xep$(EXESFX): xep.o hostc.o calc.o imp.o $(XDIR) $(PVMLIBDEP)
$(CC) $(XCFLAGS) $(CFLAGS) -o xep$(EXESFX) xep.o calc.o imp.o hostc.o \
$(XLIBS) $(LIBS) -lm
mv xep$(EXESFX) $(XDIR)
clean:
rm -f mmain$(EXESFX) mtile$(EXESFX) xep$(EXESFX) *.o
xep.o: $(SDIR)/xep.c $(HEADERS)
$(CC) $(XCFLAGS) $(CFLAGS) -c $(SDIR)/xep.c
imp.o: $(SDIR)/imp.c $(HEADERS)
$(CC) $(XCFLAGS) $(CFLAGS) -c $(SDIR)/imp.c
calc.o: $(SDIR)/calc.c $(HEADERS)
$(CC) $(XCFLAGS) $(CFLAGS) -c $(SDIR)/calc.c
hostc.o: $(SDIR)/hostc.c $(HEADERS)
$(CC) $(XCFLAGS) $(CFLAGS) -c $(SDIR)/hostc.c